<script>
	import request from 'utils/request.js'
	export default {
		// onLaunch: function() {
		// 	console.log('App Launch')
		// },
		onShow: function() {
			wx.login({
				async success({code}) {
					console.log(code);
					let openId = await request('/getOpenId',{code})
					uni.setStorage({
						key:'openId',
						data:openId
					})
				}
			})
		},
		// onHide: function() {
		// 	console.log('App Hide')
		// }
	}
</script>

<style lang="stylus">
	/*每个页面公共css */
	@import url("./static/iconfont/iconfont.styl");
	page
		height 100%
		padding-bottom 100upx
		box-sizing border-box
</style>
